<?php
/**
 * Desc: 控制器基类
 * Auth: Shaoming Lu<lushao1012@163.com>
 * Date: 2018/4/10
 * Time: 12:20
 */
namespace echophp;

use echophp\exception\NotFoundException;

class BaseController extends NotFoundException
{
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  array   $parameters
     * @return mixed
     *
     * @throws echophp\exception\NotFoundHttpException
     */
    public function missingMethod($parameters = [])
    {
        throw new NotFoundHttpException('Controller method not found.');
    }
}